import os, sys

try:
    import pocsuite3
except ImportError:
    sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), os.path.pardir)))
from pocsuite3.api import init_pocsuite, start_pocsuite, get_results


def run_pocs():
    config = {
        'url': ['https://sdemo.icoremail.net', '100.1.1.1:6379', 'https://sdemo.icoremail.net'],
        'poc': ['001_ssh_burst', '004_redis_unauthorized', '006_mongo_unauthorized', '007_springboot_actuator']
    }
    init_pocsuite(config)
    start_pocsuite
    result = get_results().pop()
    print(result)


run_pocs()
